//
//  CantripBookmarkController.h
//  ColorListChanger
//
//  Created by James Callender on Mon Jul 21 2003.
//  Copyright (c) 2003 James Callender. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CantripSDK/CantripSDK.h>

@interface CantripBookmarkController : NSWindowController 
{
    IBOutlet CantripOutlineView *bookmarkView;
    IBOutlet CantripTableView *collectionsView;
    IBOutlet NSPanel *updatePanel;
    IBOutlet NSTextField *mainStatusField;
    IBOutlet NSTextField *subStatusField;
    IBOutlet NSProgressIndicator *progressBar;
    
    NSMutableDictionary *menuMudList;
    NSMutableArray *collectionsList;
    NSMutableArray *bigMudList;

    NSArray *draggedNodes;
    NSMutableDictionary *iconCache;
    int draggedRow;
    
    NSURLDownload *mudlistURLHandle;
    NSURLResponse *downloadResponse;
    long bytesReceived; 
}

+ (CantripBookmarkController *)sharedInstance;
- (IBAction)showPanel:(id)sender;
- (void)populateBookmarksInDirectory:(NSString *)directoryPath forNode:(CantripOViewNode *)parentNode atIndex:(int)index;
- (BOOL)bookmark:(NSString *)path existsInNode:(CantripOViewNode *)node;

- (void)updateBookmarksMenu;
- (void)updateViewsAndData;

@end
